﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using DAL;

namespace BLL
{
   public class ProjectTypeBLL
    {
       ProjectTypeDAL dal = new ProjectTypeDAL();
        /// <summary>
        /// 发标
        /// </summary>
        /// <returns></returns>
        public List<ProjectType> ShowProjectType()
        {
            return dal.ShowProjectType();
        }
        /// <summary>
        /// 删除信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int DeleteProjectType(int id)
        {
            return dal.DeleteProjectType(id);
        }
        /// <summary>
        /// 添加信息
        /// </summary>
        /// <param name="p"></param>
        /// <returns></returns>
        public int ProjectType_Add(Model.ProjectType p)
        {
            return dal.ProjectType_Add(p);
        }
        /// <summary>
        /// 显示详细信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public ProjectType ShowProjectTypeX(int id)
        {
            return dal.ShowProjectTypeX(id);
        }
        /// <summary>
        /// 修改信息
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        public int UpdateProjectType(ProjectType data)
        {
            return dal.UpdateProjectType(data);
        }
        /// <summary>
        /// 搜索
        /// </summary>
        /// <param name="pp"></param>
        /// <returns></returns>
        public List<ProjectType> SeleteProjectType(string name)
        {
            return dal.SeleteProjectType(name);
        }
    }
}
